package com.crm.service.client;

import java.math.BigDecimal;
import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;

import com.crm.pojo.ClientTransfer;
import com.crm.vo.Result;

public interface ClientTransferService {

	/**
	 * 添加客户转移日志
	 * @param out_userId
	 * @param in_userId
	 * @param cid
	 * @param operateClientId
	 * @return
	 */
	public Result transferClient(BigDecimal out_userId, BigDecimal in_userId, Long cid, BigDecimal operateClientId);
	
	/**
	 * 查询所有的转移日志
	 * @param pageable
	 * @return
	 */
	public List<ClientTransfer> queryAllClientTransfer(int curpage, int pagesize);
	
	/**
	 * 查询所有的转移日志的数量
	 * @return
	 */
	public Long queryCountAllClientTransfer();
	
	/**
	 * 根据转入用户查找转移日志
	 * @param inClientId
	 * @param pageable
	 * @return
	 */
	public List<ClientTransfer> queryClientTransferByInClientId(BigDecimal inClientId, int curpage, int pagesize);
	

	/**
	 * 根据转入用户查找转移日志的数量
	 * @param inClientId
	 * @return
	 */
	public Long queryCountClientTransferByInClientId(BigDecimal inClientId);
	
	/**
	 * 根据转出用户查找转移日志
	 * @param outClentId
	 * @param pageable
	 * @return
	 */
	public List<ClientTransfer> queryClientTransferByOutClientId(BigDecimal outClentId, int curpage, int pagesize);
	
	/**根据转出用户查找转移日志
	 * 
	 * @param outClentId
	 * @return
	 */
	public Long queryCountClientTransferByOutClientId(BigDecimal outClentId);
}
